<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
session_start();

include("top.php");
?>
<script language="javascript">
		  function check_input1(form)
			  {
			    if(form.password1.value=="")
				{
				  alert("请输入原密码!");
				  form.password1.select();
				  return(false);
				}
				if(form.password2.value=="")
				{
				  alert("请输入新密码!");
				  form.password2.select();
				  return(false);
				}      
			   if(form.password3.value=="")
				{
				  alert("请输入确认密码!");
				  form.password3.select();
				  return(false);
				} 
				if(form.password2.value!=form.password3.value)
				{
				  alert("密码与确认密码不同!");
				  form.password2.select();
				  return(false);
				}
			  }
</script>
<table width="766" height="438" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="229" height="438" align="center" valign="top" bgcolor="#F5F5F5"><div align="center">
      <?php include("left.php");?>
	
      </div></td>
    <td width="561" align="center" valign="top" bgcolor="#FFFFFF"><table width="500" height="10" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td></td>
      </tr>
    </table>
      <table width="550" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td><div align="center"><a href="usercenter.php">修改个人信息</a>&nbsp;<span style="color: #0000FF"></span><a href="changememberspwd.php">修改密码</a>&nbsp;<span style="color: #0000FF"></span><a href="showorder.php">订单管理</a>&nbsp;<span style="color: #0000FF"></span><a href="logout.php">注销离开&nbsp;</a></div></td>
        </tr>
      </table>
      <table width="500" height="10" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td></td>
        </tr>
      </table>
      <table width="450" height="100" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="20" bgcolor="#B0E0E6"><div align="center">修改用户密码</div></td>
        </tr>
        <tr>
          <td height="80" bgcolor="#B0E0E6"><table width="450" height="80" border="0" align="center" cellpadding="0" cellspacing="1">
              <form name="form1" method="post" action="savechangememberspwd.php" onSubmit="return check_input1(this)">
                <tr>
                  <td width="77" height="20" bgcolor="#FFFFFF"><div align="center">原密码：</div></td>
                  <td width="170" bgcolor="#FFFFFF"><div align="left">
                          <input type="password" name="password1" size="20" maxlength="18">
                  </div></td>
                </tr>
                <tr>
                  <td height="20" bgcolor="#FFFFFF"><div align="center">新密码：</div></td>
                  <td height="20" bgcolor="#FFFFFF"><div align="left">
                          <input type="password" name="password2" size="20" maxlength="18">
                  </div></td>
                </tr>
                <tr>
                  <td height="20" bgcolor="#FFFFFF"><div align="center">确认新密码：</div></td>
                  <td height="20" bgcolor="#FFFFFF"><div align="left">
                          <input type="password" name="password3" size="20" maxlength="18">
                  </div></td>
                </tr>
                <tr>
                  <td height="20" colspan="2" bgcolor="#FFFFFF"><div align="center">
                      <input name="submit2" type="submit" class="buttoncss" value="更改">
                  </div></td>
                </tr>
              </form>
          </table></td>
        </tr>
      </table></td>
  </tr>
</table>
<?php
 include("bottom.php");
?>